package com.chengzzz.mysite.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chengzzz.mysite.dao.AnimationDao;
import com.chengzzz.mysite.dao.SourceDao;
import com.chengzzz.mysite.entity.Animation;
import com.chengzzz.mysite.entity.Source;
import com.chengzzz.mysite.service.SourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (Source)表服务实现类
 *
 * @author 等什么柠檬君
 * @since 2020-08-24 14:26:50
 */
@Service("sourceService")
public class SourceServiceImpl extends ServiceImpl<SourceDao, Source> implements SourceService {
    @Autowired
    private SourceDao sourceDao;

    @Override
    public List<Source> selectByAid(int id) {
        QueryWrapper queryWrapper = new QueryWrapper();
        queryWrapper.eq("aid",id);
        return sourceDao.selectList(queryWrapper);
    }
}